﻿using System.Windows.Controls;


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using PropertyChanged;

namespace PrintDll
{
    /// <summary>
    /// 打印出门证
    /// </summary>
    [AddINotifyPropertyChangedInterface]
    public partial class PrintExitControl : UserControl
    {
        public string PlateNo { get; set; }
        
        public string DriverName { get; set; }

        public string ID { get; set; }
        public string PrintDateTime { get; set; }

        public PrintExitControl(ExitViewModel exitViewModel)
        {
            InitializeComponent();
            //this.DataContext = exitViewModel;
            PlateNo = exitViewModel.PlateNo;
            DriverName = exitViewModel.Name;
            ID = exitViewModel.ID;
            PrintDateTime = exitViewModel.PrintDateTime.ToString("yyyy/MM/dd HH:mm:ss");
        }
    }
}
